Fix reference to buf in parsing of ocaml escapes.
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Wed, 9 Aug 2006 09:13:34 +0000 (10:13 +0100)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Wed, 9 Aug 2006 09:13:34 +0000 (10:13 +0100)
Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xend/sxp.py

index 551a8d3ec222008030450610c98adae24386ad86..e37adfb119ffa4e5e9f600afe61181d5b235af83 100644 (file)
@@ -291,7 +291,7 @@ class Parser:
             raise ParseError(self, "unexpected EOF")
         elif '0' <= c <= '7':
             octaldigit(c)
-        elif len(self.buf):
+        elif len(self.state.buf):
             octaldone()
             self.input_char(c)